#pragma once

#include <QWidget>
#include "ui_Pacs_EditReportWidget.h"
#include <QMap>
#include "FastReportReview.h"
class QTreeWidgetItem;
class Pacs_EditReportWidget : public QWidget
{
	Q_OBJECT

public:
	Pacs_EditReportWidget(QWidget *parent = Q_NULLPTR);
	~Pacs_EditReportWidget();
public:
	void setCurrentPaientInfo();
private slots:
	void on_reportModelTree_itemDoubleClicked(QTreeWidgetItem *item, int column);
	void on_reportModelTree_itemClicked(QTreeWidgetItem *item, int column);
	void on_btn_save_clicked();
	void on_btn_preview_clicked();
	void on_print_btn_clicked();
private:
	void fillTree();
	void onDealWithText(QString);
	void ShowButton(bool isShow);
private:
	Ui::Pacs_EditReportWidget ui;
	QMap<int, QTreeWidgetItem*> m_partItemMap;
	QMap<int, QTreeWidgetItem*> m_typeItemMap;
	QTreeWidgetItem *m_topItem;
	QList<QStringList> m_needSelectText;
	FastReportReview   *m_reportView;
};
